package com.woniu.learnhttps;

import org.apache.catalina.Context;
import org.apache.catalina.connector.Connector;
import org.apache.tomcat.util.descriptor.web.SecurityCollection;
import org.apache.tomcat.util.descriptor.web.SecurityConstraint;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainer;
import org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer;
import org.springframework.boot.context.embedded.EmbeddedServletContainerFactory;
import org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
//public class LearnHttpsApplication extends SpringBootServletInitializer implements EmbeddedServletContainerCustomizer {
//
//	public static void main(String[] args) {
//		SpringApplication.run(LearnHttpsApplication.class, args);
//	}
//
//	@Override
//	public void customize(ConfigurableEmbeddedServletContainer configurableEmbeddedServletContainer) {
//		configurableEmbeddedServletContainer.setPort(8443);
//	}
//}

public class LearnHttpsApplication extends SpringBootServletInitializer{

	public static void main(String[] args) {
		SpringApplication.run(LearnHttpsApplication.class, args);
	}
}
